home *** CD-ROM | disk | FTP | other *** search
/ Power Bytes: Money & Finance / PowerBytes Money and Finance CD-ROM 01 / PowerBytes Money and Finance CD-ROM 01.iso / New Stuffed Files / PTUnit 1.1.sit / README < prev   
Encoding:
Text File  |  1988-11-06  |  1.6 KB  |  44 lines  |  [TEXT/TPAS]

  1. Hello, again.
  2.  
  3. Included is a Turbo Pascal unit which supports your basic macintosh paint
  4. tools.  These are not meant to be used in sophisticated applications whose
  5. main purpose is graphics, but for applications that you might want to spice
  6. up a bit with the ability of graphics without having to do the work.
  7.  
  8. This new version (1.1.0) speeds up the drawing of the line, frame, and fill
  9. tools.  (Line, Rectangle, Filled Oval, etc.)
  10.  
  11. All information, such as, pen size and pen pattern, is passed via the current
  12. grafport.
  13.  
  14. The main procedure that you call is...
  15.  
  16. DoPaintTools (which : Integer; where : Point; modifiers : Integer);
  17.  
  18. which       - which tool you want to use.
  19. where       - where the mouse was click in local coordinates of the current
  20.               grafport.
  21. modifiers   - the modifiers field of the current event.
  22.  
  23. You can see how this is used in the example program.
  24.  
  25. Paint Tools uses memory for most of its tools so make sure at least 100K is
  26. free.  If PTError does not return noErr, and if it does not return either 
  27. TUnknown or TUnImp, then it is returning a memory manager error.
  28.  
  29. Don't forget to call InitPaintTools after initializing all the other
  30. macintosh managers.  The version number it returns is $0110.
  31.  
  32. The only modifier key now used is the command-key.  Using it while drawing
  33. will frame a rectangle in the current pattern, for example.
  34.  
  35. If you do use Paint Tools in an application that is not for your own private
  36. use please include in your about box the following in a 9 point font of your
  37. choice.
  38.  
  39. "Portions of the graphics code, ⌐1988 Kevin Parichan"
  40.  
  41. Thank you.
  42.  
  43. Kevin Paricha - KPARICHAN
  44.